﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeploymentMaxLib
{
    public class ActionRoutineRef
    {
        public Guid Key { get; set; }
        public Guid RoutineKey { get; set; }
        public DateTime? Created { get; set; }
        public DateTime? Updated { get; set; }
        public List<Guid> LocationList { get; set; }
          
        public ActionRoutineRef()
        {
        }

        private ActionRoutineRef(Guid pRoutineKey)
        {
            this.Key = Guid.NewGuid();
            this.RoutineKey = pRoutineKey;
            this.Created = DateTime.Now;
            this.LocationList = new List<Guid>();
        }

        public static ActionRoutineRef New(Guid pRoutineKey)
        {
            return new ActionRoutineRef(pRoutineKey);
        }
    }
}
